package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:17
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductRoleDefine implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long productDefineId;

    /**
     * Attribute productDefineId Be Seted Falg
     */
    private boolean productDefineIdSetted = false;

    /**
    * Attribute productDefineId is Null Falg
    */
    private boolean productDefineIdNull = false;
    private String roleCode;

    /**
     * Attribute roleCode Be Seted Falg
     */
    private boolean roleCodeSetted = false;

    /**
    * Attribute roleCode is Null Falg
    */
    private boolean roleCodeNull = false;
    private String roleName;

    /**
     * Attribute roleName Be Seted Falg
     */
    private boolean roleNameSetted = false;

    /**
    * Attribute roleName is Null Falg
    */
    private boolean roleNameNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String productDefineName;

    /**
     * Attribute productDefineName Be Seted Falg
     */
    private boolean productDefineNameSetted = false;

    /**
    * Attribute productDefineName is Null Falg
    */
    private boolean productDefineNameNull = false;
    private String productDefineStatus;

    /**
     * Attribute productDefineStatus Be Seted Falg
     */
    private boolean productDefineStatusSetted = false;

    /**
    * Attribute productDefineStatus is Null Falg
    */
    private boolean productDefineStatusNull = false;
    private String productDefineCode;

    /**
     * Attribute productDefineCode Be Seted Falg
     */
    private boolean productDefineCodeSetted = false;

    /**
    * Attribute productDefineCode is Null Falg
    */
    private boolean productDefineCodeNull = false;

    public ProductRoleDefine() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get productDefineId
         *
         * @return long
         */
    final public long getProductDefineId() {
        return productDefineId;
    }

    /**
     * Set productDefineId
     *
     * @param long
     */
    final public void setProductDefineId(long productDefineId) {
        this.productDefineId = productDefineId;

        this.productDefineIdSetted = true;

        this.setProductDefineIdNull(false);
    }

    /**
     * Get productDefineId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineIdSetted() {
        return this.productDefineIdSetted;
    }

    /**
     * Set productDefineId Null
     *
     */
    final public void setProductDefineIdNull() {
        this.productDefineIdNull = true;
    }

    final public void setProductDefineIdNull(boolean aNullFlag) {
        this.productDefineIdNull = aNullFlag;
    }

    final public boolean isProductDefineIdNull() {
        return this.productDefineIdNull;
    }

    /**
         * Get roleCode
         *
         * @return String
         */
    final public String getRoleCode() {
        if (isRoleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(roleCode);
        }
    }

    /**
     * Set roleCode
     *
     * @param String
     */
    final public void setRoleCode(String roleCode) {
        this.roleCode = StringUtils.trim(roleCode);

        this.roleCodeSetted = true;

        this.setRoleCodeNull(this.roleCode == null);
    }

    /**
     * Get roleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleCodeSetted() {
        return this.roleCodeSetted;
    }

    /**
     * Set roleCode Null
     *
     */
    final public void setRoleCodeNull() {
        this.roleCodeNull = true;
    }

    final public void setRoleCodeNull(boolean aNullFlag) {
        this.roleCodeNull = aNullFlag;
    }

    final public boolean isRoleCodeNull() {
        return this.roleCodeNull;
    }

    /**
         * Get roleName
         *
         * @return String
         */
    final public String getRoleName() {
        if (isRoleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(roleName);
        }
    }

    /**
     * Set roleName
     *
     * @param String
     */
    final public void setRoleName(String roleName) {
        this.roleName = StringUtils.trim(roleName);

        this.roleNameSetted = true;

        this.setRoleNameNull(this.roleName == null);
    }

    /**
     * Get roleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleNameSetted() {
        return this.roleNameSetted;
    }

    /**
     * Set roleName Null
     *
     */
    final public void setRoleNameNull() {
        this.roleNameNull = true;
    }

    final public void setRoleNameNull(boolean aNullFlag) {
        this.roleNameNull = aNullFlag;
    }

    final public boolean isRoleNameNull() {
        return this.roleNameNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get productDefineName
         *
         * @return String
         */
    final public String getProductDefineName() {
        if (isProductDefineNameNull()) {
            return null;
        } else {
            return StringUtils.trim(productDefineName);
        }
    }

    /**
     * Set productDefineName
     *
     * @param String
     */
    final public void setProductDefineName(String productDefineName) {
        this.productDefineName = StringUtils.trim(productDefineName);

        this.productDefineNameSetted = true;

        this.setProductDefineNameNull(this.productDefineName == null);
    }

    /**
     * Get productDefineName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineNameSetted() {
        return this.productDefineNameSetted;
    }

    /**
     * Set productDefineName Null
     *
     */
    final public void setProductDefineNameNull() {
        this.productDefineNameNull = true;
    }

    final public void setProductDefineNameNull(boolean aNullFlag) {
        this.productDefineNameNull = aNullFlag;
    }

    final public boolean isProductDefineNameNull() {
        return this.productDefineNameNull;
    }

    /**
         * Get productDefineStatus
         *
         * @return String
         */
    final public String getProductDefineStatus() {
        if (isProductDefineStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(productDefineStatus);
        }
    }

    /**
     * Set productDefineStatus
     *
     * @param String
     */
    final public void setProductDefineStatus(String productDefineStatus) {
        this.productDefineStatus = StringUtils.trim(productDefineStatus);

        this.productDefineStatusSetted = true;

        this.setProductDefineStatusNull(this.productDefineStatus == null);
    }

    /**
     * Get productDefineStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineStatusSetted() {
        return this.productDefineStatusSetted;
    }

    /**
     * Set productDefineStatus Null
     *
     */
    final public void setProductDefineStatusNull() {
        this.productDefineStatusNull = true;
    }

    final public void setProductDefineStatusNull(boolean aNullFlag) {
        this.productDefineStatusNull = aNullFlag;
    }

    final public boolean isProductDefineStatusNull() {
        return this.productDefineStatusNull;
    }

    /**
         * Get productDefineCode
         *
         * @return String
         */
    final public String getProductDefineCode() {
        if (isProductDefineCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(productDefineCode);
        }
    }

    /**
     * Set productDefineCode
     *
     * @param String
     */
    final public void setProductDefineCode(String productDefineCode) {
        this.productDefineCode = StringUtils.trim(productDefineCode);

        this.productDefineCodeSetted = true;

        this.setProductDefineCodeNull(this.productDefineCode == null);
    }

    /**
     * Get productDefineCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineCodeSetted() {
        return this.productDefineCodeSetted;
    }

    /**
     * Set productDefineCode Null
     *
     */
    final public void setProductDefineCodeNull() {
        this.productDefineCodeNull = true;
    }

    final public void setProductDefineCodeNull(boolean aNullFlag) {
        this.productDefineCodeNull = aNullFlag;
    }

    final public boolean isProductDefineCodeNull() {
        return this.productDefineCodeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductRoleDefine) == false) {
            return false;
        }

        ProductRoleDefine other = (ProductRoleDefine) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("productDefineId=");
        buffer.append(this.productDefineId);

        buffer.append("roleCode=");
        buffer.append(this.roleCode);

        buffer.append("roleName=");
        buffer.append(this.roleName);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("productDefineName=");
        buffer.append(this.productDefineName);

        buffer.append("productDefineStatus=");
        buffer.append(this.productDefineStatus);

        buffer.append("productDefineCode=");
        buffer.append(this.productDefineCode);

        buffer.append("]");

        return buffer.toString();
    }
}
